home *** CD-ROM | disk | FTP | other *** search
-
- XDEF StrCmp
-
- ; StrCmp() - Compares two strings in A0 and A1.
-
- ; Result:
- ; D0 = 0 if they are equal, non-zero if not.
-
- StrCmp:
- cmpm.b (a0)+,(a1)+
- beq.b .NullCheck
- bra.b .NotEqual
-
- .NullCheck:
- tst.b (a0)
- bne.b StrCmp
- tst.b (a0)
- bne.b .NotEqual
- tst.b (a1)
- bne.b .NotEqual
- moveq #0,d0
- rts
-
- .NotEqual:
- moveq #-1,d0
- rts
-